package com.zhongke.cotrun.service;

import com.aliyuncs.exceptions.ClientException;
import com.zhongke.cotrun.model.exception.MyException;

import javax.servlet.http.HttpSession;

public interface MessageService {
    /**
     * 发送短信
     */
    public Boolean sendMessage(String telephoneNUmber, String message, HttpSession session,String reset) throws ClientException, MyException;

    /**
     * 校验验证码
     */
    public Boolean verifyCode(String message, HttpSession session);

    /**
     * 专家通知
     * @param telephoneNUmber
     * @param phone
     * @param session
     * @return
     * @throws ClientException
     */
    public boolean sendMessageForExpert(String telephoneNUmber, String phone, HttpSession session) throws ClientException, MyException;

    /**
     * 项目通知
     * @param telephoneNUmber
     * @param phone
     * @param name
     * @param content
     * @param session
     * @return
     * @throws ClientException
     * @throws MyException
     */

    public boolean sendMessageForProject(String telephoneNUmber,String phone,String name,String content,HttpSession session) throws ClientException, MyException;

    /**
     * 服务通知
     * @param telephoneNUmber
     * @param phone
     * @param name
     * @param content
     * @param session
     * @return
     * @throws ClientException
     * @throws MyException
     */
    public boolean sendMessageForService(String telephoneNUmber,String phone,String name,String content,HttpSession session) throws ClientException, MyException;


}
